<template>
  <z-modal
    title="审批详情"
    v-bind="modalOption"
    @cancel="handleCancel"
    :okButtonProps="{ class: { '!hidden': true }}"
  >
  <a-spin :spinning="confirmLoading">
    <TaskForm ref="kfbPend" disabled :task="task" :formData="formData" @hook:mounted="childMounted" />
  </a-spin>
  </z-modal>
</template>

<script>
import TaskForm from './TaskForm'
import ModalMixins from '@/mixins/ModalMixins'
export default {
  name: 'TaskHistoryFormModal',
  components: { TaskForm },
  mixins: [ModalMixins],
  props: {
    formData: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      task: {},
      confirmLoading: false
    }
  },
  methods: {
    show(task) {
      this.visible = true
      this.confirmLoading = true
      this.task = task
    },
    childMounted() {
      this.confirmLoading = false
    }
  }
}
</script>

<style>

</style>
